package com.durablemethods.futures;

import static org.junit.Assert.*;

import java.util.List;

import org.junit.Test;

import com.durablemethods.futures.client.NHLTraderPosition;
import com.durablemethods.futures.client.NHLTraderPositionService;
import com.durablemethods.futures.client.NHLTraderPositionServiceAsync;
import com.durablemethods.futures.server.NHLTraderPositionServiceImpl;
import com.google.gwt.core.client.GWT;
import com.google.gwt.junit.client.GWTTestCase;
import com.google.gwt.user.client.rpc.AsyncCallback;

public class test extends GWTTestCase {

	@Test
	public void test() {
		NHLTraderPositionServiceAsync nhlTraderPositionService = GWT.create(NHLTraderPositionService.class);
		nhlTraderPositionService.getPositionsForTrader("jamie@durablemethods.com", new AsyncCallback<List<NHLTraderPosition>>() {
			
			@Override
			public void onSuccess(List<NHLTraderPosition> result) {
				// TODO Auto-generated method stub
				
			}
			
			@Override
			public void onFailure(Throwable caught) {
				// TODO Auto-generated method stub
				
			}
		});
		
	}

	@Override
	public String getModuleName() {
		
		return "durable-futures";
	}

}
